home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / lib / pm-utils / sleep.d / 95led < prev    next >
Text File  |  2009-10-06  |  297b  |  17 lines

  1. #!/bin/sh
  2. # On an IBM system. make the suspend LED blink.
  3. # TODO: Merge with 95led?  Should be trivial.
  4.  
  5. [ -f /proc/acpi/ibm/led ] || exit $NA
  6.  
  7. case "$1" in
  8.     hibernate|suspend)
  9.         echo "7 blink" >/proc/acpi/ibm/led
  10.         ;;
  11.     thaw|resume) 
  12.         echo "7 off" >/proc/acpi/ibm/led
  13.         ;;
  14.     *) exit $NA
  15.         ;;
  16. esac
  17.